﻿// // // // // 



// 侧边栏

var admin_subnav = {
      data:[
          {
              admin_subnav_oneIcon:"icon-shopping-cart",
              admin_subnav_oneName:"商品管理",
              data:[
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-th-large",
                      admin_subnav_secondName:"商品分类"
                  },
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-sitemap",
                      admin_subnav_secondName:"商品列表"
                  },
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-ok",
                      admin_subnav_secondName:"新品上架"
                  },
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-bar-chart",
                      admin_subnav_secondName:"商品统计"
                  }
              ]
          },
          {
              admin_subnav_oneIcon:"icon-user",
              admin_subnav_oneName:"会员管理",
              data:[
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-reorder",
                      admin_subnav_secondName:"会员列表"
                  },
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-bar-chart",
                      admin_subnav_secondName:"会员统计"
                  }
              ]
          },
          {
              admin_subnav_oneIcon:"icon-truck",
              admin_subnav_oneName:"供商管理",
              data:[
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-th-list",
                      admin_subnav_secondName:"供商列表"
                  },
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-glass",
                      admin_subnav_secondName:"新增供商"
                  }
              ]
          },
          {
              admin_subnav_oneIcon:"icon-list",
              admin_subnav_oneName:"订单管理",
              data:[
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-tags",
                      admin_subnav_secondName:"全部订单"
                  },
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-th-list",
                      admin_subnav_secondName:"已支付订单"
                  },
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-ok",
                      admin_subnav_secondName:"已完成订单"
                  },
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-trash",
                      admin_subnav_secondName:"已取消订单"
                  }
              ]
          },
          {
              admin_subnav_oneIcon:"icon-tags",
              admin_subnav_oneName:"优惠及活动",
              data:[
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-tag",
                      admin_subnav_secondName:"优惠券管理"
                  },
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-tasks",
                      admin_subnav_secondName:"活动列表"
                  }
              ]
          },
          {
              admin_subnav_oneIcon:"icon-money",
              admin_subnav_oneName:"财务管理",
              data:[
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-tint",
                      admin_subnav_secondName:"交易流水"
                  },
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-tasks",
                      admin_subnav_secondName:"供商结算"
                  },
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-group",
                      admin_subnav_secondName:"平台运营"
                  }
              ]
          },
          {
              admin_subnav_oneIcon:"icon-cogs",
              admin_subnav_oneName:"后台管理",
              data:[
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-user",
                      admin_subnav_secondName:"用户列表"
                  },
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-user-md",
                      admin_subnav_secondName:"新增用户"
                  },
                  {
                      admin_subnav_secondHref:"#",
                      admin_subnav_secondIcon:"icon-cog",
                      admin_subnav_secondName:"系统配置"
                  }
              ]
          }
      ]
  };



// 
// 
$(function(){

  // load路径配置
  $("#acfcontent_index").load("template_index.html");
  $("#acfcontent_information").load("template_information.html");
  $("#acfcontent_password").load("template_password.html");

  // 时间选择器
  $(".dataTime_hsTwo").datetimepicker({
  　  minView: "month",
  　　format: "yyyy-mm-dd",
  　　language: 'zh-CN',
  　　autoclose:true,
      endDate:new Date(),
  });
  $(".form_datetime").datetimepicker({
      format: "dd MM yyyy - hh:ii",
      autoclose: true,
      todayBtn: true,
      language: 'zh-CN',
      minuteStep: 10
  });

  // 富文本编辑器
  var ue = UE.getEditor('myEditor' , {
      autoHeightEnabled: true,
      autoFloatEnabled: true,
      initialFrameHeight: 320
  });


  // Highcharts配置

  var chart = new Highcharts.Chart('container', {

      title: {
          text: '东京有点热',
          x: -20
      },
      subtitle: {
          text: '帅帅的同学',
          x: -20
      },
      credits: {
          enabled:false
      },
      xAxis: {
          categories: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
      },
      yAxis: {
          title: {
              text: '温度 (°C)'
          },
          plotLines: [{
              value: 0,
              width: 1,
              color: '#808080'
          }]
      },
      tooltip: {
          valueSuffix: '°C'
      },
      legend: {
          layout: 'vertical',
          align: 'right',
          verticalAlign: 'middle',
          borderWidth: 0
      },
      series: [{
          name: '东京',
          data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
      }, {
          name: '纽约',
          data: [-0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5]
      }, {
          name: '柏林',
          data: [-0.9, 0.6, 3.5, 8.4, 13.5, 17.0, 18.6, 17.9, 14.3, 9.0, 3.9, 1.0]
      }, {
          name: '伦敦', 
          data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]
      }]
  });
  // $(window).resize(function() {
  //     window.location.reload();
  // });
  // 

});